//
//  CustomNavgationBar.m
//  iSeal5200
//
//  Created by Yuan.He on 12-12-4.
//  Copyright (c) 2012年 http://www.heyuan110.com. All rights reserved.
//

#import "CustomNavgationBar.h"
#import <QuartzCore/QuartzCore.h>

@implementation CustomNavgationBar

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) 
    {        
        if ([[[UIDevice currentDevice]systemVersion]floatValue] >= 5.0f)
        {
            UIImage *navigationImg = ThemeImage(@"nav_bar_bg");
            [self setBackgroundImage:navigationImg forBarMetrics:UIBarMetricsDefault];
        }
        [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:NO];
    }
    return self;
}


/*
- (void)drawRect:(CGRect)rect
{
    UIImage *navigationImg = ThemeImage(@"nav_bar_bg");    
    [navigationImg drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
*/
@end
